function initData(page_index) {
$.ajax({
		url : $("#Pagination").attr("url"),
		type : "post",
		cache : false,
		data : {
			currentPage : page_index,
			pageSize : $("#Pagination").attr("pageSize"),
			typeid: $("#typeid").val(),
			soso: $("#soso").val(),
			beginDate:$("#dpd1").val(),
			endDate:$("#dpd2").val(),
			foundername:$("#foundername").val()
		},
		success : function(data) {
			var json=eval("("+data+")");
			$("#Pagination").attr("recordCount",json.recordCount);
			$("#expTable").empty(); 			
			var str='';
			for(var i=0;i<json.circles.length;i++){
				var intr=json.circles[i].introduction;
				if(intr.length>30){
					intr=intr.substring(0,25)+'...';
				}
				str+='<tr><td><input type="checkbox" class="checkboxes" value="'+json.circles[i].id+'"></td><td>'+json.circles[i].name+'</td><td>'+intr+'</td><td>'+(json.circles[i].createdate).substring(0,10)+'</td><td>'
				     +json.circles[i].foundername+'</td><td>' +json.circles[i].typename
				     +'</td><td><a target="_blank" href="../circle/circleinfo?id='+json.circles[i].id+'">查看</a> | '				   
				     +'<a target="_blank" type="'+json.circles[i].id+'" onclick="del(this)">删除</a></td></tr>';
			}
			$("#expTable").append(str);
			$.fn.refreshPagination(page_index);
		},
		error : function(xhr) {
			alert("点击过快，正在加载，请稍后再次点击!"+xhr.statusText);
		}
	});
	jQuery('#sample_1 .group-checkable').attr("checked", false);
}

function del(obj){
	if(confirm("确认要删除吗?")){
		$.post("delCircle", { circleId: obj.type},function(data){
			initData(1);
		});
	}
}


